runtime.activeSweep.state (field)
11 uses
runtime (current package)
mgc.go#L157: sweep.active.state.Store(sweepDrainedMask)
mgcsweep.go#L139: state atomic.Uint32
mgcsweep.go#L154: state := a.state.Load()
mgcsweep.go#L158: if a.state.CompareAndSwap(state, state+1) {
mgcsweep.go#L171: state := a.state.Load()
mgcsweep.go#L175: if a.state.CompareAndSwap(state, state-1) {
mgcsweep.go#L195: state := a.state.Load()
mgcsweep.go#L199: if a.state.CompareAndSwap(state, state|sweepDrainedMask) {
mgcsweep.go#L207: return a.state.Load() &^ sweepDrainedMask
mgcsweep.go#L214: return a.state.Load() == sweepDrainedMask
mgcsweep.go#L222: a.state.Store(0)
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)